home *** CD-ROM | disk | FTP | other *** search
/ PC Play 128 / pc play 128.iso / Demo / xmr / xmr.exe / {app} / Shaders / ps / ps2_0_hdr_lum_adaptation.psh < prev    next >
Encoding:
Text File  |  2006-04-29  |  967 b   |  44 lines

  1. //
  2. // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
  3. //
  4. //   fxc /T ps_2_0 /DCGC=0 /Fc
  5. //    ..\..\WorkDir\Shaders\ps\ps2_0_hdr_lum_adaptation.psh
  6. //    ps2_0_hdr_lum_adaptation.cg
  7. //
  8. //
  9. // Parameters:
  10. //
  11. //   sampler2D $Tex0;
  12. //   sampler2D $Tex1;
  13. //   float4 $g_fElapsedTime;
  14. //
  15. //
  16. // Registers:
  17. //
  18. //   Name            Reg   Size
  19. //   --------------- ----- ----
  20. //   $g_fElapsedTime c0       1
  21. //   $Tex0           s0       1
  22. //   $Tex1           s1       1
  23. //
  24.  
  25.     ps_2_0
  26.     def c1, 0.5, -1.0985837, 1, 0
  27.     def c2, 65504, 0, 0, 0
  28.     dcl_2d s0
  29.     dcl_2d s1
  30.     mov r0.w, c0.x
  31.     mul r0.w, r0.w, c1.y
  32.     exp r0.w, r0.w
  33.     add_sat r3.w, -r0.w, c1.z
  34.     mov r0.xy, c1.x
  35.     texld r1, r0, s0
  36.     texld r0, r0, s1
  37.     lrp r2.w, r3.w, r0.x, r1.x
  38.     max r1.w, r2.w, c1.w
  39.     min r0.xyz, r1.w, c2.x
  40.     mov r0.w, c1.z
  41.     mov oC0, r0
  42.  
  43. // approximately 13 instruction slots used (2 texture, 11 arithmetic)
  44.